﻿using System.IO;
using SmartQuant;

namespace SgdDemo
{
    public class Program
    {
        static Program()
        {
            OpenQuantOutside.Init();
        }

        static void Main(string[] args)
        {
            var framework = new Framework("SgdTest");
            var server = new StreamInstrumentServer();
            server.SetFramework(framework);
            server.SetDataPath(Path.GetDirectoryName(typeof(Program).Assembly.Location)!);
            framework.InstrumentServer = server;
            var manager = new InstrumentManager(framework, server);
            manager.Load();
            framework.InstrumentManager = manager;
            new DemoScenario(framework).Run();
        }
    }
}